package com.ssy.lingxi.product.repository.material;

import com.ssy.lingxi.product.entity.material.MaterInnerLog;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 物料内部单据流转记录-Repository
 * @author lqa
 * @version 2.0.0
 * @date 22/03/28
 */
@Repository
public interface MaterInnerLogRepository extends JpaRepository<MaterInnerLog,Long>, JpaSpecificationExecutor<MaterInnerLog> {

    List<MaterInnerLog> findByGoodsId(Long goodsId);

    void deleteByGoodsIdIn(List<Long> idList);
}
